package com.jiamao.goplay.data.source;

import com.jiamao.goplay.bean.BaseRep;
import com.jiamao.goplay.bean.res.ResLogin;

import io.reactivex.Observable;
import retrofit2.http.Field;

/**
 * Created by goldze on 2019/3/26.
 */
public interface HttpDataSource {


    Observable<BaseRep<ResLogin>> loginPhone(@Field("Phone") String Phone, @Field("Code") String Code);

    Observable<BaseRep<ResLogin>> loginWeChat(@Field("UniqueId") String UniqueId,@Field("AppOpenid") String AppOpenid);

    Observable<BaseRep<String>> sendSMS(@Field("Phone") String Phone,@Field("Type") int Type);


    Observable<BaseRep<String>> regiestUserInfo(@Field("Nickname") String Nickname, @Field("Brithday") String Brithday, @Field("Gender") String Gender, @Field("Avatar") String Avatar);

    Observable<BaseRep<String>> uploadImage();

}
